home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
Xm
/
XmTextFieldPosToXY.z
/
XmTextFieldPosToXY
Wrap
Text File
|
1998-10-30
|
4KB
|
67 lines
XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddPPPPoooossssTTTTooooXXXXYYYY((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddPPPPoooossssTTTTooooXXXXYYYY((((3333XXXX))))
NNNNAAAAMMMMEEEE
XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddPPPPoooossssTTTTooooXXXXYYYY - A TextField function that accesses the
x and y position of a character position
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
#include <Xm/TextF.h>
BBBBoooooooolllleeeeaaaannnn XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddPPPPoooossssTTTTooooXXXXYYYY(
WWWWiiiiddddggggeeeetttt wwwwiiiiddddggggeeeetttt,
XXXXmmmmTTTTeeeexxxxttttPPPPoooossssiiiittttiiiioooonnnn ppppoooossssiiiittttiiiioooonnnn,
PPPPoooossssiiiittttiiiioooonnnn ****xxxx,
PPPPoooossssiiiittttiiiioooonnnn ****yyyy);
VVVVEEEERRRRSSSSIIIIOOOONNNN
This page documents Motif 2.1.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddPPPPoooossssTTTTooooXXXXYYYY accesses the _x and _yposition, relative to
the upper left corner of the TextField widget, of a given
character position in the text buffer.
_w_i_d_g_e_t Specifies the TextField widget ID
_p_o_s_i_t_i_o_n Specifies the character position in the text for
which the _x and _yposition is accessed. This is an
integer number of characters from the beginning of
the buffer. The first character position is 0.
_x Specifies the pointer in which the _x position is
returned. The returned position is the distance
from the left side of the widget to the left
border of the character. This value is meaningful
only if the function returns True.
_y Specifies the pointer in which the _y position is
returned. The returned position is the distance
from the top of the widget to the character's
baseline. This value is meaningful only if the
function returns True.
For a complete definition of TextField and its associated
resources, see XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeelllldddd(3).
RRRREEEETTTTUUUURRRRNNNN
This function returns True if the character position is
displayed in the TextField widget; otherwise, it returns
False, and no _x or _yvalue is returned.
RRRREEEELLLLAAAATTTTEEEEDDDD
XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeelllldddd(3).
Page 1 (printed 10/24/98)